#include "junix.h"
// 异常规范
using namespace std;

void f()throw() {
	throw 8;
	cout<<"PASS"<<endl;
}

void g() throw(std::string) {
	throw std::string("hello,world\n");
}

int main(int argc, char **argv)
{
	try{
		g();
	} catch (string const& e) {
		std::cout<<e;
	}

	try{
		f();
	} catch(const int&) {
		std::cout<<"int catch\n";
	}
}
